######################################################################
##
## Copyright (c) 1994  Carnegie Mellon University
## All rights reserved.
## 
## Use and copying of this software and preparation of derivative
## works based on this software are permitted, including commercial
## use, provided that the following conditions are observed:
## 
## 1. This copyright notice must be retained in full on any copies
##    and on appropriate parts of any derivative works.
## 2. Documentation (paper or online) accompanying any system that
##    incorporates this software, or any part of it, must acknowledge
##    the contribution of the Gwydion Project at Carnegie Mellon
##    University.
## 
## This software is made available "as is".  Neither the authors nor
## Carnegie Mellon University make any warranty about the software,
## its performance, or its conformity to any specification.
## 
## Bug reports, questions, comments, and suggestions should be sent by
## E-mail to the Internet address "gwydion-bugs@cs.cmu.edu".
##
######################################################################
##
##  $Header: Makefile.in,v 1.5 94/10/28 22:21:43 wlott Exp $
##
##  This is the makefile for the Mindy streams library, streams.dbc.
##

SHELL	=	/bin/sh

##
## begin autoconf'ed source
##

prefix	=		@prefix@
exec_prefix	=	@exec_prefix@
srcdir	=		@srcdir@

SRCDIR	=		${srcdir}
BINDIR	=		${exec_prefix}/bin
LIBDIR	=		${exec_prefix}/lib/mindy

CC	=		@CC@
CCOPTS	=		@CCOPTS@
CFLAGS	=		$(CCOPTS) -I${SRCDIR} @DEFS@ -DBINDIR=\"${BINDIR}\" -DLIBDIR=\"${LIBDIR}\"
YACC	=		@YACC@
YFLAGS	=		-d
LEX	=		@LEX@
LFLAGS	=		@LFLAGS@
RANLIB	=		@RANLIB@
INSTALL	=		@INSTALL@
INSTALL_PROGRAM	=	@INSTALL_PROGRAM@
INSTALL_DATA	=	@INSTALL_DATA@

LIBOBJS =		@LIBOBJS@
LIBS	=		@LIBS@

##
## end of configure written portion
##

MC	= ../../comp/mindycomp

MINDYFLAGS = -lStreams

OBJS = library.dbc internals.dbc streams.dbc standard-io.dbc

streams-lib.dbc: ${OBJS}
	cat ${OBJS} > $@

library.dbc: ${SRCDIR}/library.dylan
	${MC} ${MINDYFLAGS} -o library.dbc ${SRCDIR}/library.dylan
internals.dbc: ${SRCDIR}/internals.dylan
	${MC} ${MINDYFLAGS} -o internals.dbc ${SRCDIR}/internals.dylan
streams.dbc: ${SRCDIR}/streams.dylan
	${MC} ${MINDYFLAGS} -o streams.dbc ${SRCDIR}/streams.dylan
standard-io.dbc: ${SRCDIR}/standard-io.dylan
	${MC} ${MINDYFLAGS} -o standard-io.dbc ${SRCDIR}/standard-io.dylan

clean:
	rm -f ${OBJS} streams-lib.dbc *~ \#* core

realclean:
	rm -f ${OBJS} streams-lib.dbc Makefile *~ \#* core

install: streams-lib.dbc
	${INSTALL_DATA} streams-lib.dbc ${LIBDIR}
